Skip to content

Upload a file from the node to an S3 bucket

Request

Requires nodes::service:datastore-manager permission.

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

Bodyapplication/json

Upload config

bucketDeststring

S3 destination

Example:"s3://your-bucket/your-destination.iso"
filePathstring

File path in data store

Example:"file.iso"
curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/v2/node/{nodeID}/data-store/s3-upload' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "bucketDest": "s3://your-bucket/your-destination.iso",
    "filePath": "file.iso"
  }'

Responses

OK